package com.lihua.newideas.service;

import com.lihua.newideas.pojo.UserManuscript;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserManuscriptService {

    /*
     * 添加稿件
     * */
    void insertUserManuscript(UserManuscript userManuscript);

    /*
     * 根据id进行查找
     * */
    UserManuscript queryManuscriptById(Long id);

    /*
     * 根据username查询稿件
     * */
    List<UserManuscript> queryUserManuscriptByUserName(String userName);

    /*
     * 查询全部
     * */
    List<UserManuscript> queryUserManuscriptByStatus(long manuscriptStatus);

    /*
    * 根据id修改状态
    * */
    void updateManuscriptStatusById(long id, long manuscriptStatus);


}
